<template>
    <el-scrollbar>
      <div class="scroll-wrap">
        <div class="good-list" v-for="(item,index) in [,,,,,,,,,]" :key="index">
          <div class="img-wrap">
            <img src="/static/home/bj1.png">
          </div>
          <div class="name">
            电饭锅电饭锅电饭锅电电饭锅电饭锅电饭锅饭锅电饭锅电饭锅电饭锅电饭锅
          </div>
          <div class="price-wrap">
            <div class="price">
              ￥99.<span>00</span>	
            </div>
            <div class="img">
              <i class="iconfont icongouwuche"></i>
            </div>
          </div>
        </div>
      </div>
    </el-scrollbar>
</template>

<script>
export default {
  name: 'HotSaleStyle1',
  data() {
    return {
    }
  },
  computed: {
    
  },
  mounted() {
    
  },
  methods: {

  },
}
</script>

<style lang="less" scoped>
  // 热卖style1
  .el-scrollbar {
    width: 100%;
    .scroll-wrap {
      display: flex;
      align-items: center;
      flex-wrap: nowrap;
      .good-list {
        width: 104px;
        margin-right: 15px;
        flex-shrink: 0;
        .img-wrap {
          width: 100%;
          height: 84px;
          margin-bottom: 15px;
          img {
            width: 100%;
            height: 100%;
            border-radius: 5px;
          }
        }
        .name {
          color: #000;
          font-size: 12px;
          height: 33px;
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-line-clamp: 2; //行数
          -webkit-box-orient: vertical;
        }
        .price-wrap {
          display: flex;
          align-items: center;
          justify-content: space-between;
          margin-top: 13px;
          .price {
            font-size: 14px;
            color: #ff0000;
            span {
              font-size: 10px;
            }
          }
          img {
            width: 20px;
            height: 20px;
          }
          .img {
            width: 23px;
            height: 23px;
            background: #fc7e07;
            line-height: 27px;
            text-align: center;
            color: #fff;
            border-radius: 50%;
          }
        }
      }
    }
  }
  
</style>